package com.cyys.entity;

/**
 * @author Administrator
 * @description Orders
 * @date 2022-06-17 9:30
 */

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = false)
@TableName("orders")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.AUTO)
    /**
     * id
     */
    private Integer id;

    /**
     * 用户id
     */
    private String mini_id;

    /**
     * 价格
     */
    private double price;

    /**
     * 购买数量
     */
    private String sum;

    /**
     * 购买时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date time;

    /**
     * 状态(0-当前订单，1-历史订单)
     */
    private String status;

    /**
     * 店铺id
     */
    private Integer storeid;

    /**
     * 状态码
     */
    private Integer states_id;

    /**
     * uuid
     */
    private String uuid;

    /**
     * 购物车id
     */
    private String shopping_cart_id;

    /**
     * 取餐吗
     */
    private Integer takeyard;


    /**
     * 1.男0.女
     */
    private Integer sex;

    /**
     * 电话号码
     */
    private String iphone;

    /**
     * 联系人
     */
    private String name;

    /**
     * 收货地址
     */
    private String profile;

    /**
     * 详细地址
     */
    private String site;

    /**
     * 订单备注
     */
    private String remark;

    @TableField(exist = false)
    private String nickname;

    /**
     * 订单状态
     */
    @TableField(exist = false)
    private String state;

    /**
     * 店名
     */
    @TableField(exist = false)
    private String storename;

    /**
     * 详细地址
     */
    @TableField(exist = false)
    private String address;

    /**
     * 电话
     */
    @TableField(exist = false)
    private String storeIphone;


    /**
     * 购物车list
     */
    @TableField(exist = false)
    private List<ShoppingCart> shoppingCarts;

    @TableField(exist = false)
    Long time_ms;

    public Orders() {
    }
}
